package com.cx.mapper;

import com.cx.pojo.Gearbox;
import com.cx.pojo.GearboxExample;
import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository// 用于修饰mapper（dao）层的
public interface GearboxMapper {
    int countByExample(GearboxExample example);

    int deleteByExample(GearboxExample example);

    int deleteByPrimaryKey(Integer gId);

    int insert(Gearbox record);

    int insertSelective(Gearbox record);

    List<Gearbox> selectByExample(GearboxExample example);

    Gearbox selectByPrimaryKey(Integer gId);

    int updateByExampleSelective(@Param("record") Gearbox record, @Param("example") GearboxExample example);

    int updateByExample(@Param("record") Gearbox record, @Param("example") GearboxExample example);

    int updateByPrimaryKeySelective(Gearbox record);

    int updateByPrimaryKey(Gearbox record);

    //查询所有变速箱
    List<Gearbox> selectAllGearbox(Gearbox gearbox);
}